import {createApp} from 'vue'
import router from '@/router/router'
import {store} from '@/pinia'
import JsonEditorVue from 'json-editor-vue3'
import contextmenu from "v-contextmenu";
import "v-contextmenu/dist/themes/default.css";
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as ELIcons from '@element-plus/icons-vue'
const app = createApp(App)
app.config.productionTip = false

for (let iconName in ELIcons) {
    app.component(iconName, ELIcons[iconName])
}
app
    .use(router)
    .use(store)
    .use(ElementPlus, {locale: zhCn})
    .use(JsonEditorVue)
    .use(contextmenu)
    .mount('#app')

export default app
